import sys

import pygame

from settings import Settings
import game_functions as gf

def run_game():
    mc_settings = Settings()
    pygame.init()
    screen = pygame.display.set_mode((mc_settings.screen_width, mc_settings.screen_height))
    pygame.display.set_caption(mc_settings.window_caption)
    while True:
        gf.check_events()
        gf.update_screen(mc_settings, screen)


run_game()